package com.lvmama.pangolin.service;

import java.util.List;

import com.lvmama.pangolin.entity.CommodityRel;
import com.lvmama.pangolin.entity.link.TicketCommodityLink;

public interface RelevanceCommodityService {

	public int selectCountByCompanyCode(String companyCode);

	public void insertCommodityLink(TicketCommodityLink comLink);

	public void insertCommodityRel(CommodityRel commodityRel);

	public List<CommodityRel> queryByCommodityRel(CommodityRel commodityRel);
	
	public void deleteCommodityLink(TicketCommodityLink comLink);
	
	public List<TicketCommodityLink> viewCommodityLink(TicketCommodityLink comLink);
	
	public List<String> groupByCommodityId(String productId,String businessCode);
	
	public List<TicketCommodityLink> selectByCommProdComp(String productId,String CommodityId,String companyCode);

	/**
	 * 查询商品关联表中的业务类型
	 * @return
	 */
	public List<String> selectBusinessCodes();

	/**
	 * 查询商品关联表中公司
	 * @return
	 */
	public List<String> selectCompanyCodes();

	/**
	 * 根据条件查询条数
	 */
	public int selectCounts(CommodityRel commodityRel);

}
